package org.jeecg.modules.inspect.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * @Description: 任务记录
 * @Author: jeecg-boot
 * @Date:   2023-11-24
 * @Version: V1.0
 */
@Data
@TableName("ins_task_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ins_task_record对象", description="任务记录")
public class InsTaskRecord implements Serializable {
    private static final long serialVersionUID = 1L;

	/**记录ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "记录ID")
    private java.lang.String id;

	/**任务ID*/
	@Excel(name = "任务ID", width = 15, dictTable = "ins_task", dicText = "task_no", dicCode = "id")
	@Dict(dictTable = "ins_task", dicText = "task_no", dicCode = "id")
    @ApiModelProperty(value = "任务ID")
    private java.lang.String taskId;

    /**任务*/
    @TableField(exist = false)
    @ApiModelProperty(value = "任务")
    private String taskName;

    @TableField(exist = false)
    @ApiModelProperty(value = "任务编号")
    private String taskNo;

	/**任务项ID*/
	@Excel(name = "任务项ID", width = 15, dictTable = "ins_task_item", dicText = "item_name", dicCode = "id")
	@Dict(dictTable = "ins_task_item", dicText = "item_name", dicCode = "id")
    @ApiModelProperty(value = "任务项ID")
    private java.lang.String itemId;
    /**任务项*/
    @TableField(exist = false)
    @ApiModelProperty(value = "任务项")
    private String itemName;

	/**线路ID*/
	@Excel(name = "线路", width = 15, dictTable = "ins_line", dicText = "line_name", dicCode = "id")
	@Dict(dictTable = "ins_line", dicText = "line_name", dicCode = "id")
    @ApiModelProperty(value = "线路")
    private java.lang.String lineId;

    /**线路*/
    @TableField(exist = false)
    @ApiModelProperty(value = "线路")
    private String lineName;

	/**人员*/
	@Excel(name = "人员", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "人员")
    private java.lang.String userId;

	/**人员姓名*/
	@Excel(name = "人员姓名", width = 15)
    @ApiModelProperty(value = "人员姓名")
    private java.lang.String userName;

	/**部门ID*/
	@Excel(name = "部门", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
	@Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @ApiModelProperty(value = "部门")
    private java.lang.String deptId;

    /**部门*/
    @TableField(exist = false)
    @ApiModelProperty(value = "部门")
    private String deptName;

	/**角色ID*/
	@Excel(name = "角色", width = 15)
    @ApiModelProperty(value = "角色")
    private java.lang.String roleId;

    /**角色*/
    @TableField(exist = false)
    @ApiModelProperty(value = "角色")
    private String roleName;

	/**巡检点位ID*/
	@Excel(name = "巡检点位", width = 15, dictTable = "ins_point", dicText = "point_name", dicCode = "id")
	@Dict(dictTable = "ins_point", dicText = "point_name", dicCode = "id")
    @ApiModelProperty(value = "巡检点位")
    private java.lang.String pointId;

    /**巡检点位*/
    @TableField(exist = false)
    private String pointName;

    /**卡ID*/
    @Excel(name = "卡ID", width = 15)
    @ApiModelProperty(value = "卡ID")
    private java.lang.String cardId;

    @Excel(name = "卡号", width = 15)
    @ApiModelProperty(value = "卡号")
    private String cardNo;

	/**巡检状态*/
	@Excel(name = "巡检状态", width = 15, dicCode = "ins_status")
	@Dict(dicCode = "ins_status")
    @ApiModelProperty(value = "巡检状态")
    private java.lang.String insStatus;

    @TableField(exist = false)
    @ApiModelProperty(value = "巡检状态")
    private java.lang.String insStatus_dictText;

	/**巡检时间*/
	@Excel(name = "巡检时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "巡检时间")
    private java.util.Date insTime;

	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remark;

	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;

	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;

	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private java.lang.String updateBy;

	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private java.util.Date updateTime;

	/**删除标记 0正常 1已删除*/
	@Excel(name = "删除标记 0正常 1已删除", width = 15)
    @ApiModelProperty(value = "删除标记 0正常 1已删除")
    //@TableLogic
    private java.lang.Integer delFlag;

	/**组织机构编码*/
    @ApiModelProperty(value = "组织机构编码")
    private java.lang.String sysOrgCode;

    /**手机*/
    @ApiModelProperty(value = "手机")
    private java.lang.String userPhone;

    /**是否交接打卡(是；否)*/
    @ApiModelProperty(value = "是否交接打卡(是；否)")
    private java.lang.String isConnect;

    @TableField(exist = false)
    @ApiModelProperty(value = "巡检开始时间")
    private String insTime_begin;

    @TableField(exist = false)
    @ApiModelProperty(value = "巡检结束时间")
    private String insTime_end;

}
